import csv
import getpath
import os
import openpyxl
import myglobal
import config_json
def ejff():
    if config_json.setting["ejff_nas"]==1:
        fname=os.path.join(myglobal.src_path,"ejff.xlsx")
    else:
        fname=os.path.join(getpath.getpath(),"ejff.xlsx")
    from openpyxl import load_workbook
    xl_book = load_workbook(filename=fname)
    table = xl_book.worksheets[0]
    data = []
    for row in table.values:
        r = []
        for one in row:
            if one is not None:
                r.append(one)
            else:
                r.append(None)
        data.append(r)
    data.sort()
    return data
